package com.core.family.admin.service;
import com.core.common.gen.IBaseService;
import com.core.family.biz.yizhao.domain.dto.WalletDto;
import com.core.family.admin.domain.po.PlatFinanceStatement;
import com.core.family.admin.domain.req.PlatFinanceStatementReq;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-13 15:03:14
 * @Description 服务实现层接口  财务账单
 */
public interface PlatFinanceStatementService extends IBaseService<PlatFinanceStatement> {


    WalletDto getWallet(PlatFinanceStatementReq queryReq);

    PlatFinanceStatement getDetailById(Long id);




    /**
     *
     * @param out
     * @param in
     * @param frozen
     * @return
     */
    /**
     * 订单转账
     * @param userIdFr 下单人id
     * @param userIdTo 接单人id
     * @param price    价格
     * @param orderId  订单id
     * @param frozen   资金是否冻结
     * @return
     */
    boolean abmt(int userIdFr,int userIdTo ,long price, String title,Integer orderId,boolean frozen);

    PlatFinanceStatement saveRecharge(Integer id, String username, long longValue, String outTradeNo);

    PlatFinanceStatement getby(String outTradeNo);
}

